← Back
Editing: index-legacy27.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach(function(e){r(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var a=r&&r.prototype instanceof l?r:l,s=Object.create(a.prototype);return u(s,"_invoke",function(n,r,o){var i,a,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,a=0,u=t,p.n=n,c}};function y(n,r){for(a=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],y=p.p,m=i[2];n>3?(o=m===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(a=0,p.v=r,p.n=i[1]):y<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,p.n=m,a=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&y(s,m),a=s,u=m;(e=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),y(a,u)):p.n=u:p.v=u);try{if(l=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==c)break}catch(e){i=t,a=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),s}var c={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(u(e={},r,function(){return this}),e),y=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t}return s.prototype=f,u(y,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(y),u(y,o,"Generator"),u(y,r,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:m}})()}function u(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,n,r){function i(e,n){u(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},u(t,e,n,r)}function c(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function l(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)})}}System.register(["./index-legacy93.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./index-legacy131.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./useController-legacy4.js?v=1765440387","./useMethods-legacy.js?v=1765440387","./index-legacy121.js?v=1765440387","./index-legacy120.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy114.js?v=1765440387","./index-legacy94.js?v=1765440387","./useController-legacy5.js?v=1765440387","./site-legacy.js?v=1765440387","./useStore-legacy3.js?v=1765440387","./useController-legacy6.js?v=1765440387"],function(t,e){"use strict";var r,i,u,c,s,f,p,y,m,v,d,b,g,h,k,j,w,x,_,O,S,C,P,D,T,A,B,I,E,q,G,F,L,N,R,H,M,W,J,K,Q,U,V,$,z,X,Y,Z,tt,et,nt,rt,ot,it,at,ut;return{setters:[function(t){r=t._},function(t){i=t.u,u=t.aq,c=t.aL,s=t.c,f=t.b,p=t.ay,y=t.aM,m=t.a6,v=t.a7,d=t.a8,b=t.e},function(t){g=t.u},function(t){h=t.c,k=t.r,j=t.k,w=t.p,x=t.aQ,_=t.x,O=t.q,S=t.M,C=t.A,P=t.v,D=t.y,T=t.e,A=t.B,B=t.C,I=t.s,E=t.aC,q=t.ao,G=t.aq,F=t.ap,L=t.a5,N=t.i},function(t){R=t.k},null,function(t){H=t.a,M=t.o,W=t.g,J=t.u},function(t){K=t.D,Q=t.u,U=t.a,V=t.b,$=t.c,z=t.g,X=t.d,Y=t.o,Z=t.e,tt=t.f,et=t.s,nt=t.h,rt=t.i,ot=t.j},function(t){it=t.N},function(t){at=t.B},function(t){ut=t._},null,null,null,null,null,null,null],execute:function(){var e={key:0,class:"flex items-center"},ct={key:1,class:"flex items-center"},lt=h({__name:"index",emits:["init"],setup:function(t,n){var r=n.expose,p=n.emit,y=f(),m=p,v=i().plugin,d=k(v.value.webserver),b=k(!1),g=k(!1),h=j({title:"",name:"",status:!0,version:"",admin:!1,s_version:"",setup:!1}),I=function(){var t=l(a().m(function t(e){var n,r;return a().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,u({sName:e.name});case 1:if(n=t.v,"-1"!==(r=n.data).task){t.n=2;break}return t.a(2,y.error("当前插件正在安装,不可重复安装"));case 2:R({name:null==r?void 0:r.name,type:"i",pluginInfo:r}),q();case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),E=!1,q=function(){var t=l(a().m(function t(){var e,n,r,o=arguments;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e=o.length>0&&void 0!==o[0]&&o[0],t.p=1,!E){t.n=2;break}return t.a(2);case 2:return t.n=3,c({name:"web"});case 3:n=t.v,(r=n.data).status||e||setTimeout(function(){q()},3e3),r.status&&!e&&m("init"),b.value=!r.status,Object.assign(h,r),"nginx"!==r.name&&(b.value=!0,g.value=r.status),t.n=5;break;case 4:t.p=4,t.v,e||setTimeout(function(){q()},3e3);case 5:return t.a(2)}},t,null,[[1,4]])}));return function(){return t.apply(this,arguments)}}();return w(function(){q(!0)}),x(function(){E=!0}),r({checkInstallStatus:q,pluginInfo:h,maskLayer:b,webServerType:d}),function(t,n){var r=s,i=ut;return _(b)?(O(),S(i,{key:0,width:"38rem"},{content:C(function(){return[_(g)?(O(),P("div",ct,o(n[3]||(n[3]=[D("span",null,"Docker项目只支持nginx环境",-1)])))):(O(),P("div",e,[n[2]||(n[2]=D("span",null,"未安装运行环境,",-1)),T(r,{onClick:n[0]||(n[0]=function(t){return I({name:"nginx"})}),class:"!font-bold !text-[1.4rem]"},{default:C(function(){return o(n[1]||(n[1]=[A("安装Nginx",-1)]))}),_:1})]))]}),_:1})):B("",!0)}}}),st={class:""},ft={class:"flex items-center ml-1rem"};var pt=h({__name:"index",setup:function(t){var e=i().mainHeight,a=K(),u=a.getDockerSiteList,c=a.setDockerSiteStatus,l=a.setDockerSiteRemark,f=a.delDockerSite,b=a.resetData,h=p().refs.isRefreshSiteList,k=I(K()),j=k.pluginInfo,x=k.classList,S=k.statusFilterKey,B=y({options:[{type:"button",label:"创建",active:!0,onClick:function(){return tt()}},{type:"button",label:"运行环境",onClick:function(){return et()}},{type:"button",label:"常用设置",onClick:function(){return nt()}},{type:"custom",render:function(){return T(at,{style:"margin-left:1.2rem;",isRequest:!1,pluginInfo:j.value},null)}}]}).BtOperation,R=d([rt({callback:function(){},classList:x}),{label:"删除项目",value:"delete",event:ot}]),ut=g({key:"classify",name:"Docker分类",options:function(){return[{label:"全部分类",value:"all"}]},event:X,ignore:["0","-2"],field:"name"}),ct=m({request:function(t){return u(n(n({p:t.p||1,row:t.limit||20,query:t.search||""},t.classify&&"all"!==t.classify?{classify:t.classify}:{}),"all"!==S.value?{type:S.value}:{}))},columns:[H(),Q({onClick:Y,openPlugin:Z}),{label:"类型",prop:"type",minWidth:90,renderHeader:function(){var t=[{title:"全部",key:"all"},{title:"JAVA",key:"java"},{title:"Go",key:"go"},{title:"PHP",key:"php"},{title:"Python",key:"python"},{title:"反向代理",key:"proxy"},{title:"Docker应用",key:"app"}];return E("div",{class:"flex items-center flex-nowrap"},["",E(q,{onCommand:function(t){S.value=t,ht()}},{default:function(){return E("span",{class:"text-[1.2rem] flex items-center"},[[T("span",{class:"status-header-text leading-[1.5] whitespace-nowrap"},[A("类型"),"all"===S.value?"":"(".concat(t.find(function(t){return t.key===S.value}).title,")")])],E("i",{class:"svgtofont-el-arrow-down "})])},dropdown:function(){var e,n;return T(F,null,"function"==typeof(n=e=t.map(function(t){return T(G,{command:t.key},{default:function(){return[t.title]}})}))||"[object Object]"===Object.prototype.toString.call(n)&&!N(n)?e:{default:function(){return[e]}})}})])}},U({prop:"status",onClick:function(t){var e="1"===t.status?0:1;c({status:e,id:t.id,site_name:t.name,edate:t.edate})},onFilterEvent:function(t){S.value=t,ht()}}),{label:"根目录",prop:"path",minWidth:200,isCustom:!0,render:function(t){return T("div",null,[T("span",{class:"w-full whitespace-pre-line inline-block bt-link leading-[16px]",onClick:function(){return M(t,"path")},title:"点击打开目录"},[t.path])])}},V(),W({request:function(t,e){l({remark:e,id:t.id,site_name:t.name})},prop:"remark",width:200}),$({onClick:function(t){return Y(t,"ssl")}}),J([{onClick:function(t){Z(t,"monitor-setting")},title:"统计"},{onClick:function(t){Z(t,"bt_waf")},title:"WAF"},{title:"设置",onClick:Y},{title:"删除",onClick:function(t){f(t)}}])],extension:[ut,R,v(h)]}),pt=ct.BtTable,yt=ct.BtPage,mt=ct.BtRefresh,vt=ct.BtSearch,dt=ct.BtColumn,bt=ct.BtBatch,gt=ct.BtTableCategory,ht=ct.refresh;return w(function(){z()}),L(function(){b()}),function(t,n){var i=s,a=r;return O(),P("div",st,[T(lt,{ref:"envRef",onInit:_(ht)},null,8,["onInit"]),T(a,null,{"header-left":C(function(){return[T(_(B)),D("div",ft,[D("div",{class:"flex items-center",onClick:n[0]||(n[0]=function(){return _(it)&&_(it).apply(void 0,arguments)})},o(n[1]||(n[1]=[D("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),D("span",{class:"bt-link"},"需求反馈",-1)]))),T(i,{href:"https://www.bt.cn/bbs/thread-140664-1-1.html",class:"ml-10px"},{default:C(function(){return o(n[2]||(n[2]=[A(">>使用帮助",-1)]))}),_:1})])]}),"header-right":C(function(){return[T(_(gt),{class:"!w-[160px] mr-[10px]"}),T(_(vt),{class:"mr-[10px] !w-[26rem]",placeholder:"请输入项目名称或备注"}),T(_(mt),{class:"mr-[10px]"}),T(_(dt))]}),content:C(function(){return[T(_(pt),{"max-height":_(e)},null,8,["max-height"])]}),"footer-left":C(function(){return[T(_(bt))]}),"footer-right":C(function(){return[T(_(yt))]}),_:1})])}}});t("default",b(pt,[["__scopeId","data-v-645f426d"]]))}}})}();
Save File
Cancel